Search
SimpleSeries Constructor (List<Number> | Array<Number>, List<String> | Array<String>, List<String> | Array<String>)
See Also
 






Initializes a new instance of the SimpleSeries class.

Namespace: MindFusion.Charting
File: SimpleSeries.js

 Syntax

JavaScript  Copy Code

function SimpleSeries (values, labels, [tooltips])

 Parameters

values

A list of data values.

labels

A list of labels.

tooltips
Optional.

A list of tooltips.

 Example

The following code creates a new SimpleSeries with 12 values and labels. It also sets the data values as tooltips:

JavaScript  Copy Code
var data = new Collections.List([2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24]);
var labels = new Collections.List([
 "Jan", "Feb", "Mar", "Apr", "May", "Jun",
 "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
]);
var series = new Charting.SimpleSeries(data, labels, data);

 See Also